package 享元模式;

public class Tree {
    private String name;
    private String data;

    public Tree() {
    }

    public Tree(String name, String data) {
        System.out.println("创建一棵树:name"+name+",树的其他属性:"+data);
        this.name = name;
        this.data = data;
    }
}
